package com.xuhuan.practice.dto.user;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @author: huan.xu
 * @create: 2024/6/13 18:21
 * @description: 更新用户密码DTO
 **/
@Data
public class UserUpdatePwdDTO {

  /**
   * 旧密码
   */
  @Pattern(regexp = "^\\S{5,16}$")
  private String oldPwd;

  /**
   * 新密码
   */
  @Pattern(regexp = "^\\S{5,16}$")
  private String newPwd;

  /**
   * 再次输入的密码
   */
  @Pattern(regexp = "^\\S{5,16}$")
  private String rePwd;
}
